var pageii = null;
var grid = null;
$(function() {

	grid = lyGrid({
		pagId : 'paging',
		l_column : [{
			colkey : "machine_no",
			name : "机台号"
		}, {
			colkey : "now_mold_encode",
			name : "正在生产模具号"
		}, {
			colkey : "order_number",
			name : "够产数"
		}, {
			colkey : "suite",
			name : "套数"
		},{
			colkey : "mold_number",
			name : "模数"
		},{
			colkey : "up_moldTime",
			name : "上模时间"
		},{
			colkey : "finish_time",
			name : "够产时间"
		}, {
			colkey : "wite_mold_encode",
			name : "待装模具",
			renderData : function(rowindex,data, rowdata, column) {
				if(data!=''&&data!=null){
					return data;
				}else{
					return '无';
				}
			}
		}],
		jsonUrl : rootPath + '/orderthrough/walkthrough_findByPage.shtml',
		dymCol:true,
		checkbox : true,
		serNumber : false
	});
	
	$("#ThreeDays").click("click", function() {
		ThreeAccount();
	});
	$("#search").click("click", function() {// 绑定查询按扭
		var searchParams = $("#searchForm").serializeJson();
		grid.setOptions({
			data : searchParams
		});
	});
	
});


function ThreeAccount() {
	grid = lyGrid({
		pagId : 'paging',
		l_column : [{
			colkey : "machine_no",
			name : "机台号"
		}, {
			colkey : "now_mold_encode",
			name : "正在生产模具号"
		}, {
			colkey : "order_number",
			name : "够产数"
		}, {
			colkey : "suite",
			name : "套数"
		},{
			colkey : "mold_number",
			name : "模数"
		},{
			colkey : "up_moldTime",
			name : "上模时间"
		},{
			colkey : "finish_time",
			name : "够产时间"
		}, {
			colkey : "wite_mold_encode",
			name : "待装模具",
			renderData : function(rowindex,data, rowdata, column) {
				if(data!=''&&data!=null){
					return data;
				}else{
					return '无';
				}
			}
		}],
		jsonUrl : rootPath + '/orderthrough/walkthroughThree_findByPage.shtml',
		dymCol:true,
		checkbox : true,
		serNumber : false
	});
}


